package ooday01;

public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student stu = new Student();
        //访问成员变量
        stu.name="Lrx";
        stu.className="qqq";
        stu.age=10;
        stu.stuId="001";
        //调用方法
        stu.sayHi();
        stu.study();
        stu.playName("stu1");

        Student stu1 = new Student();
        stu1.name="stu1";
        stu1.age=21;
        stu1.className="www";
        stu1.stuId="002";
        stu1.study();
        stu1.sayHi();
        stu1.playName("stu");

        //创建了一个学生对象
        //给所有成员变量赋默认值
        Student stu2 = new Student();
        stu2.study();
        stu2.sayHi();
        stu2.playName("stu1");
    }
}
